﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo12_1_1
{
    internal class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("请输入字符");
            var str = Console.ReadLine();
            Console.WriteLine("第0代");
            Debugger.Break();

            GC.Collect();
            Console.WriteLine("第1代");
            Debugger.Break();

            GC.Collect();
            Console.WriteLine("第2代");
            Debugger.Break();

        }
    }
}
